Socket
Socket
Sign inDemoInstall

image-meta

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

image-meta

[![npm version][npm-v-src]][npm-v-href] [![npm downloads][npm-d-src]][npm-d-href] [![bundle phobia][bundlephobia-src]][bundlephobia-href]


Version published
Weekly downloads
607K
decreased by-0.91%
Maintainers
2
Weekly downloads
 
Created
Source

image-meta

npm version npm downloads bundle phobia

Using yarn:

yarn add image-meta

Using npm:

npm install image-meta

Usage:

import { imageMeta } from 'image-meta'
import fetch from 'node-fetch'

const data = await fetch(url).then(res => res.buffer())
const { width, height, mimeType } = await imageMeta(data)

Note: This package only works with Node.js because of Buffer dependency!

License

MIT - Based on image-size

FAQs

Package last updated on 27 Oct 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc